import turtle as j
import random
j.colormode(255)
j.left(40)
n=0
while n<7:
    r=random.randint(0,255)
    g=random.randint(0,255)
    b=random.randint(0,255)
    j.fillcolor(r,g,b)
    j.begin_fill()
    m = 0
    while m <3:
        j.fd(100)
        j.left(120)
        m+=1
    j.end_fill()
    j.left(2*(n+1))
    n+=1
j.done()



